package chuangyi.com.org.ViewModel;

import android.content.Context;
import android.databinding.Bindable;

import chuangyi.com.org.DOMIHome.R;
import chuangyi.com.org.DOMIHome.adapter.BindingListItem;

/**
 * Created by zxh on 16/12/1.
 */
public class UserItem extends BindingListItem {
    private String avatar;
    private int uid;
    private int likecount;
    private int rankRes;

    /**
     * 获取用户头像
     * @return
     */
    @Bindable public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    /**
     * 获取排行图标
     * @return
     */
    @Bindable public int getRankRes() {
        return rankRes;
    }

    public void setRankRes(int rankRes) {
        this.rankRes = rankRes;
    }

    /**
     * 获取用户id
     * @return
     */
    @Bindable public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    /**
     * 获取点赞人数
     * @return
     */
    @Bindable public int getLikecount() {
        return likecount;
    }

    public void setLikecount(int likecount) {
        this.likecount = likecount;
    }

    public UserItem(Context context){
        super(context, R.layout.rank_user);
    }
}
